<md-dialog aria-label="字段管理" flex="">
	<form>
		<md-toolbar>
			<div class="md-toolbar-tools" layout="row"  layout-align="center center">
	        <h2>字段管理</h2>
	      </div>
		</md-toolbar>
		<md-dialog-content>
			   <md-progress-circular md-mode="indeterminate" ng-show="waitResult"></md-progress-circular>
			<!-- <md-tabs md-dynamic-height md-border-bottom md-selected="ruleDialogIndex">
				<md-tab label="填写字段"> -->
					<md-content class="md-padding">
						<!-- <h3>填写字段</h3> -->
						<div layout="row" layout-align="space-around">
							<div>
								<add-rule rule-obj="ruleObj" test-rule="test()"></add-rule>
							</div>
							<div>
								<test-text article-list="articleList" selected-article="selectedArticle" test-rule="test()"></test-text>
							</div>
						</div>
						<div layout-padding="">
							<pre class="wide-result"><h5>测试结果</h5><br /><label>{{testResult.info}}</label><ul><li ng-repeat="result in testResult.data">{{result.text}}</li></ul><span ng-bind-html="testResult.highlightText"></span></pre>
						</div>
					</md-content>
				<!-- </md-tab> -->
				<!-- <md-tab label="测试结果"> -->
					<!-- <md-content class="md-padding">
						{{testRuleResult}}
					</md-content> -->
				<!-- </md-tab>
			</md-tabs> -->
		</md-dialog-content>
		<md-dialog-actions layout="row" layout-align="end center">
			<md-button class="md-raised" ng-click="cancel()">取消</md-button>
			<!-- <md-button class="md-raised" ng-click="test()" ng-disabled="!ruleObj">测试</md-button> -->
			<md-button class="md-raised" ng-click="saveRule()" ng-disabled="!canBeSaved||!ruleObj.name">保存</md-button>
		</md-dialog-actions>
	</form>
</md-dialog>
